package mr.fileToDb;

import org.apache.hadoop.io.GenericWritable;
import org.apache.hadoop.io.Writable;

/**
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com	
 * 2017年12月18日 上午10:18:32
 *
 */
@SuppressWarnings("unchecked")
public class CollectorWritable extends GenericWritable {
	private static Class<? extends Writable>[] CLASSES = null;
	static {
		CLASSES = (Class<? extends Writable>[]) new Class[] { GridKpiBean.class, SceneKpiBean.class };
	}

	public CollectorWritable() {
	}

	public CollectorWritable(Writable instance) {
		set(instance);
	}

	@Override
	protected Class<? extends Writable>[] getTypes() {
		return CLASSES;
	}
}